<style type="text/css">
div.hot_game div.title a span {
    background: none repeat scroll 0 0 #ED7600;
    color: #FFFFFF;
    font-weight: bold;
    padding: 5px 10px;
}
</style>
	
<input type="hidden" id="search_category_id" value="<?=isset($search_category_id) ? $search_category_id : null?>"/>	
	<table width="100%">
		<tr>
			<td align="left">
			<div class="hot_game">
				<div class="title">
			<?php
				if(count($pro_cat_list) > 0){
					foreach($pro_cat_list as $category){
						?>
							<a href="/product/category/<?=$category->id?>"><span><?=$category->name?></span></a> 
						<?
					}
				}
			?>
				</div>
			</div>
				<!--
				<select onchange="setLocation(this.value)">
					<option value="qty_sold">Popular</option>
                	<option value="title">Name</option>
                	<option value="point">Price</option>
                </select>
                -->
			</td>
			<td align="right">
				<input type="text" class="text" id="search_product_name" value="" maxlength="100" />
				<a href="#" onclick="searchProduct()" class="button">Search</a>
			</td>
		</tr>
	</table>
	<div id="listproductview">
		<?
		$this->load->view("searchproduct_view", array("products" => $products, 'pPaging' => $pPaging));

		?>
	</div>